#ifndef _MOTOR_EXT_H
#define _MOTOR_EXT_H

#include "Motor_Type.h"
#include "Motor_Cfg.h"
#include "Bldc_ext.h"
extern MotorRunState_t xMotorMode;

extern MotorState_t eMotorStateMachine(void);
extern void MotorSetState(MotorState_t eState);
extern void MotorUpdateSpeed(void);
extern uint32_t u32MotorGetSpeedCtrlVal(void);
extern MotorState_t eMotorGetState(void);
extern uint16_t u16MotorGetDutyCycle(void);
extern uint16_t u16MotorGetSpeed(void);
extern uint16_t u16GetControlMode(void);
extern void MotorSetCCR(uint16_t CCR);
extern uint16_t MotorGetCCR(void);
extern void MotorProcess(void);
void MotorInit(void);
#endif
